<?php
exit;
$lifeTime =26*3600;
session_set_cookie_params($lifeTime);
session_start();
$openid=NULL;
if (isset($_GET['openid'])){
    $_SESSION['openid']=$_GET['openid'];
    header('Location: game.php');
    exit;
}
if (isset($_GET['op'])){
    $openid=$_GET['op'];
    $_SESSION['openid']=$openid;
}
if (isset($_SESSION['openid'])){
    $openid=$_SESSION['openid'];
}
if (empty($openid)){
    exit;
}
include_once("./c/config.php");
//$url=$urlB='./';
$url=$urlB='http://tu-10030004.file.myqcloud.com/jue/';
$_SESSION['skey']=rand(1,99999999);
?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>古诗文大会</title>
<style>
html,body{font-size:16px;width:100%;font-size:12px;color:#fff;font-family:Microsoft YaHei, Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;}
body, div{position:relative;padding:0px;margin:0px auto;max-width:750px;}
.weui-dialog{position:fixed;z-index:5000;width:80%;max-width:300px;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#FFF;text-align:center;border-radius:3px;overflow:hidden}.weui-dialog__hd{padding:1.3em 1.6em .5em}.weui-dialog__title{font-weight:400;font-size:18px}.weui-dialog__bd{padding:0 1.6em .8em;min-height:40px;font-size:15px;line-height:1.3;word-wrap:break-word;word-break:break-all;color:#999}.weui-dialog__bd:first-child{padding:1.2em 20px .1em;color:#353535}.weui-dialog__ft{position:relative;line-height:48px;font-size:18px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-dialog__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-dialog__btn{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3CC51F;text-decoration:none;-webkit-tap-highlight-color:transparent;position:relative}.weui-dialog__btn:active{background-color:#EEE}.weui-dialog__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleX(.5);transform:scaleX(.5)}.weui-dialog__btn:first-child:after{display:none}.weui-dialog__btn_default{color:#353535}.weui-dialog__btn_primary{color:#0BB20C}@media screen and (min-width:1024px){.weui-dialog{width:35%}}.weui-mask{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}.weui-mask_transparent{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0}
-webkit-touch-callout:none;
-webkit-user-select:none;
html{-ms-touch-action:none;}
*{-webkit-overflow-scrolling:touch;}
.fixfixed {position:absolute;}
div,img{-webkit-tap-highlight-color:rgba(0,0,0,0);}
*{-webkit-text-size-adjust: none;}
.simg{position:absolute;display:block;}
a{text-decoration:none;}
.txt{position:absolute;text-indent:6px;font-size:12px;z-index:2;}
.txt::-webkit-input-placeholder {color:#b4b4b4;text-align:left;}
.container{position:relative;width:100%;height:auto;overflow:hidden;}
.p1, .qu, .p3, .p2, .p4{position:absolute;width:100%;height:100%;display:none;}
.p1{background:#f5f3e9;} 
input{position:absolute;display:block;text-indent:10px;-webkit-appearance:none;background:none;padding:0;outline-style:none;border:none;color:#000;}
select{position:absolute;display:block;background:transparent;border:0px;text-indent:8px;font-size:12px;-webkit-appearance:none;}

.a100{position:absolute;display:block;width:100%;left:0;}
 
.t-rule, .t-zhuyi, .ti{position:absolute;width:100%;z-index:99;top:0px;left:0px;display:none;}
.t-end, .t-wan{position:absolute;width:100%;z-index:9999;top:0px;left:0px;display:none;}
.p-b, .thebg{position:absolute;width:100%;top:0;left:0;} 
#iosDialog2{display:none;}
.p1-top{position:absolute;width:100%;display:block;top:0;left:0;}
.p1-t1{background:transparent url('<?php echo $urlB; ?>img/p1-t1.png') no-repeat;background-size:cover;}
.p1-t2{position:absolute;width:100%;display:block;bottom:2%;left:0;}
.p2-t1{position:absolute;width:100%;display:block;top:0;left:0;}
.p2-t2{position:absolute;width:100%;background:transparent url('<?php echo $urlB; ?>img/p2-t2.png') no-repeat;background-size:cover;}
.p3-t2{position:absolute;width:100%;background:transparent url('<?php echo $urlB; ?>img/p3-t2.png?v=4') no-repeat;background-size:cover;}
.p3-txt{position:absolute;font-size:13px;color:#000;}

.p4-down{position:absolute;width:100%;}
.p4-shi, .p4-fen, .p4-miao{position:absolute;font-size:16px;color:#000;font-weight:700;text-align:right;}
.p2-yt1{position:absolute;font-size:12px;color:#fff;text-align:center;}
</style>
</head>
<body>
<div class="container">
  <div class="p1 page">
     <img class="p1x p-b" src="<?php echo $urlB; ?>img/index.jpg">
     <img class="p1-t2 simg " src="<?php echo $urlB; ?>img/p1-t2.png">
     <div class="thebg">
         <div class="p1-t1 a100">
            <div class="p1-bao simg"></div>
            <div class="p1-rule simg"></div>
         </div>
		 
     </div>
  </div> 
  
  <div class="p2 page">
     <img class="p2x p-b" src="<?php echo $urlB; ?>img/p2.jpg">
     <img class="p2-t1 simg " src="<?php echo $urlB; ?>img/p2-t1.png">
     <div class="thebg">
         <div class="p2-t2">
           <input id="p2-name" class="txt" name="name"  type="text" value="" placeholder="请填写学生姓名"  />
           <select id="p2-nianji" name="nianji">
				<option value="">选择年级</option>
				<option value="3">三年级</option>
				<option value="4">四年级</option>
				<option value="5">五年级</option>
				<option value="6">六年级</option>
	        </select>
	        <input id="p2-phone" class="txt" name="phone" type="number" value="" placeholder="请填写初选预留的手机"  />
	        <input id="p2-code" class="txt" name="code" type="number" value="" placeholder=""  />
            <div class="p2-yt1">获取验证码</div>
            <div class="p2-huo simg"></div>
            <div class="p2-jin simg"></div>
         </div>
     </div>
  </div> 
  
  
  <div class="p3 page">
     <img class="p2x p-b" src="<?php echo $urlB; ?>img/p2.jpg">
     <img class="p2-t1 simg " src="<?php echo $urlB; ?>img/p2-t1.png">
     <div class="thebg">
       <div class="p3-t2">
          <div class="p3-name p3-txt"></div>
          <div class="p3-phone p3-txt"></div>
          <div class="p3-nianji p3-txt"></div>
          <div class="p3-qu p3-txt"></div>
          <div class="p3-xue p3-txt"></div>
          <div class="p3-yes simg"></div>
       </div>
     </div> 
 
 </div> 
 
  <div class="p4 page">
     <img class="p2x p-b" src="<?php echo $urlB; ?>img/p2.jpg">
     <img class="p2-t1 simg " src="<?php echo $urlB; ?>img/p2-t1.png">
     <div class="thebg">
          <img class="p4-t1 simg" src="<?php echo $urlB; ?>img/p4-t1.png">
          <div class="p4-down">
             <div class="p4-shi">00 时</div>
             <div class="p4-fen">00 分</div>
             <div class="p4-miao">00 秒</div>
          </div>
         <img class="p4-bt simg" src="<?php echo $urlB; ?>img/p4-bt.png">
      </div>
     
  </div>
  <div class="js_dialog" id="iosDialog2" style="opacity: 1;">
       <div class="weui-mask"></div>
       <div class="weui-dialog">
                <div class="weui-dialog__bd weui-msg"></div>
                <div class="weui-dialog__ft">
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary weui-btn">知道了</a>
                </div>
        </div>
 </div>
  
</div>
<?php include 'js.php'; ?>
</body>
</html>